package com.minyifang.wcspf.work.ui.home.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by LuoYaWei on 2018/7/26.
 */
public class CarBean implements Serializable {


    /**
     * skuMap : [{"unitPrice":20,"comUnitName":"斤","price":40,"skuUnitName":"份","spQuantity":3,"mscId":"f4f1a6e7907811e89792d4bed9ae62f6","skuId":"7c8d538d865411e89792d4bed9ae62f6","mscQuantity":1}]
     * deputyPic : http://192.168.1.99:8888/images/20180711/5d90732b-46a3-4772-9db8-65c6111c1cb7.jpg
     * comUnitName : 斤
     * comId : 9ccf104d7aaa11e89792d4bed9ae62f6
     * comName : 西瓜
     * isNew : 1
     */

    private String deputyPic;
    private String comUnitName;
    private String comId;
    private String comName;
    private int isNew;
    private List<SkuMapBean> skuMap;

    private boolean isSelect = false;


    public void setSelect(boolean select) {
        isSelect = select;
    }

    public boolean isSelect() {
        return isSelect;
    }

    public String getDeputyPic() {
        return deputyPic;
    }

    public void setDeputyPic(String deputyPic) {
        this.deputyPic = deputyPic;
    }

    public String getComUnitName() {
        return comUnitName;
    }

    public void setComUnitName(String comUnitName) {
        this.comUnitName = comUnitName;
    }

    public String getComId() {
        return comId;
    }

    public void setComId(String comId) {
        this.comId = comId;
    }

    public String getComName() {
        return comName;
    }

    public void setComName(String comName) {
        this.comName = comName;
    }

    public int getIsNew() {
        return isNew;
    }

    public void setIsNew(int isNew) {
        this.isNew = isNew;
    }

    public List<SkuMapBean> getSkuMap() {
        return skuMap;
    }

    public void setSkuMap(List<SkuMapBean> skuMap) {
        this.skuMap = skuMap;
    }


    public static class SkuMapBean implements Serializable {

        /**
         * unitPrice : 20
         * comUnitName : 斤
         * price : 40
         * skuUnitName : 份
         * spQuantity : 3
         * mscId : f4f1a6e7907811e89792d4bed9ae62f6
         * skuId : 7c8d538d865411e89792d4bed9ae62f6
         * mscQuantity : 1
         */


        private String unitPrice;
        private String comUnitName;
        private String price;
        private String skuUnitName;
        private String spQuantity;
        private String mscId;
        private String skuId;
        private String mscQuantity;

        public String getUnitPrice() {
            return unitPrice;
        }

        public void setUnitPrice(String unitPrice) {
            this.unitPrice = unitPrice;
        }

        public String getComUnitName() {
            return comUnitName;
        }

        public void setComUnitName(String comUnitName) {
            this.comUnitName = comUnitName;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getSkuUnitName() {
            return skuUnitName;
        }

        public void setSkuUnitName(String skuUnitName) {
            this.skuUnitName = skuUnitName;
        }

        public String getSpQuantity() {
            return spQuantity;
        }

        public void setSpQuantity(String spQuantity) {
            this.spQuantity = spQuantity;
        }

        public String getMscId() {
            return mscId;
        }

        public void setMscId(String mscId) {
            this.mscId = mscId;
        }

        public String getSkuId() {
            return skuId;
        }

        public void setSkuId(String skuId) {
            this.skuId = skuId;
        }

        public String getMscQuantity() {
            return mscQuantity;
        }

        public void setMscQuantity(String mscQuantity) {
            this.mscQuantity = mscQuantity;
        }

    }
}
